package action;

import biz.UserBiz;

import com.opensymphony.xwork2.ActionSupport;

import entity.User;

public class ZhuCeAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String shenFenZhengId;
	private String shenFenZhengId1;
	private String userName;
	private int userAge;
	private String userSex;
	private String address;
	private String phone;

	public String getShenFenZhengId() {
		return shenFenZhengId;
	}

	public void setShenFenZhengId(String shenFenZhengId) {
		this.shenFenZhengId = shenFenZhengId;
	}

	public String getShenFenZhengId1() {
		return shenFenZhengId1;
	}

	public void setShenFenZhengId1(String shenFenZhengId1) {
		this.shenFenZhengId1 = shenFenZhengId1;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getUserAge() {
		return userAge;
	}

	public void setUserAge(int userAge) {
		this.userAge = userAge;
	}

	public String getUserSex() {
		return userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String checkZhuCe(){
		System.out.println("+++++++");
		UserBiz userBiz=new UserBiz();
		int num=userBiz.checkNewUser(shenFenZhengId, shenFenZhengId1, userName, userAge, userSex, address, phone);
		if(num==1){
			return SUCCESS;
		}
		return INPUT;
	}

}
